<%--@elvariable id="user" type="com.weitu.permission.user.entity.User"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>用户移动</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/permission/user/move.js"></script>
</head>
<body>
<div class="form-wrap">
    <form id="form_user" method="post">
        <div class="input-wrap">
            <label class="label-top">原部门:</label>
            <select id="old_department" class="easyui-combobox" name="oldDeptId" data-options="required:true">
                <c:forEach var="userDepartment" items="${user.userDepartmentList}">
                    <option value="${userDepartment.deptId}">${userDepartment.deptName}</option>
                </c:forEach>
            </select>
        </div>
        <div class="input-wrap">
            <label class="label-top">移动至:</label>
            <select id="new_department_tree" class="easyui-combobox" name="newDeptId"></select>
        </div>
        <div class="input-wrap">
            <label class="label-top">原部门保留用户:</label>
            <select class="easyui-combobox" name="isKeep" data-options="required:true,editable:false,selectOnNavigation:true">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
        <div class="input-wrap">
            <label class="label-top">移动用户权限:</label>
            <select class="easyui-combobox" name="isMoveAuthority" data-options="required:true,editable:false,selectOnNavigation:true">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
        <input type="hidden" name="id" value="${user.id}">
        <input name="deptId" class="hide" type="hidden" value="${param.deptId}">
    </form>
    <div class="form-button">
        <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'fa fa-save fa-lg'">保存</a>
    </div>
</div>
</body>
</html>
